500 |
Is it possible to prevent closing the control's filter bar, so it is always shown
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Item") as exontrol.EXCOMBOBOXLib.Column).DisplayFilterButton = true; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Pos") as exontrol.EXCOMBOBOXLib.Column); var_Column.AllowSizing = false; var_Column.AllowSort = false; var_Column.Width = 32; var_Column.FormatColumn = "1 apos ``"; var_Column.Position = 0; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item A"); var_Items.AddItem("Item B"); var_Items.AddItem("Item C"); excombobox1.FilterBarCaption = "len(value) = 0 ? `<fgcolor=808080>no filter` : value"; excombobox1.FilterBarPromptVisible = exontrol.EXCOMBOBOXLib.FilterBarVisibleEnum.exFilterBarVisible; exontrol.EXCOMBOBOXLib.Column var_Column1 = excombobox1.Columns[0]; var_Column1.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter; var_Column1.Filter = "Item B"; excombobox1.ApplyFilter(); excombobox1.EndUpdate(); |
499 |
How can I change the visual appearance of the +/- buttons, open/close glyphs as current visual theme (method 3)
excombobox1.BeginUpdate(); exontrol.EXCOMBOBOXLib.Appearance var_Appearance = excombobox1.VisualAppearance; var_Appearance.Add(3,"gBFLBCJwBAEHhEJAAEhABDwCg6AADACAxRDgMQBQKAAzAJBIYhiG4cYCgMZhXDOCYXABCEYRXBIZQ7BKNIxjSJ5BhIAAyDSJMjSRJUEhqGCWYDleYYYAKHIMQLJQKQS" + "BcQR9EaBZBAWTpQC0OJDTJRI4TNAgbSYAAYRqoCb6loTKypaxjCQQIgkUBpGKdBynEYsDwSGyJCCJWyIbpKAwoVbcs4AYhuJpaQi+d5PFbjVT8dLAMBwLA8EwXAJ+Opf" + "DxXU7eFKpR5fchXTI8UxXFqXZhkeQrfh7KYVRBKdBQRBEFQPJqnahqOpaXo2RoLUJKcQwHTmHYNQTALyuTALZrWeZ3XrgN74LbtZzVQauYRpbCMEr6bpoWLnFi6Ho1U4" + "llWah1jqSweFqfxPgQQRphi+Yak0YIuqUfJegef4zluaJ3nqPJeCYH4BAeX5TDLBpVGqKRRnwf4flefZtHsX54BYAR/F+EwVnUd5eAMMJKDIChygyIQpAoEh4iIJ5Jlg" + "XIcgCXpIGoFwnGEQh6BEKBgmMIICHgIJCAiUAzgyUoAhwJohkiRgygwYpiGoKwzGIcgKCkNQNCMRIbCYCRYk4QoMiOchWDwNBjhiJJaDYTRiGiFwlCQAhOE8JBJHITIR" + "gwZRZFCFCZBkOIUhKTRpCWAwgGYQ4El4NxlBifIWCcCYCFoaoMGaKYyG6GxlBmGJdhkCAWBIeA5g4U4QhMJAImkPIShRVxGgQJRlCIUISh+SJpnCZIeBgFgiHgO4OlOM" + "INCISByECDQikkGhuh2JwpmqBogCKaYiC6FwhmkQ4yHgYgYiaHopiuaRakCbIsisSpGjYOwaHYKYMCkK5CA2IxrCwCwFigaJrkLTI6lcdANAEgIA="); var_Appearance.Add(1,"CP:3 -2 -2 2 2"); var_Appearance.Add(4,"gBFLBCJwBAEHhEJAAEhABEICg6AADACAxRDgMQBQKAAzAJBIYhiG4cYCgMZhXDOCYXABCEYRXBIZQ7BKNIxjSJ5BhIAAyDSJMjSRJUEhqGCWYDleYYYAKHIMQLJQKQS" + "BcQR9EaBZBAWTpQC0OJDTJRI4TNAgbSYAAYRqoCb6loTKypaxjCQQIgkUBpGKdBynEYsDwSGyJCCJWyIbpKAwoVbcs4AYhuJpaQi+d5PFbjVT8dLAMBwLA8EwXAJ+Opf" + "DxXU7eFKpR5fchXTI8UxXFqXZhkeQrfh7KYVRBKdBQRBEFQPJqnahqOpaXo2RoLUJKcQwHTmHYNQTALyuTALZrWeZ3XrgN74LbtZzVQauYRpbCMEr6bpoWLnFi6Ho1U4" + "llWah1jqSweFqfxPgQQRphi+Yak0YIuqUfJeg8X4rluaZ3niGB+AQHx/EyShjjEVYqiUR5rnmex/GAB5+AIf4gEeXJFHyXZ3gCTAygyAociMKBKEKBIeCiCZyHYFAnCE" + "eBkh+BghFgRIegOCgYCySAgh4CAkgINAMmMNIgCcCYjn4LoLmMCJGDKC5ijIagoDMYhCAoJg1A0IxEhsJgJFiThChCY5yFYPA0GOGIYloNhNGIaIXCUJACE4TwkEkchO" + "FSFYlFkXhUCUCQZEYTglCSMxaEkYJIBmFJhDeDZZEYPwlgmQhghaGqVDoa4bGaeY6FGGZNlmFIBGEJ4jhiZQ5AkMhAg6E5JCkRoGCUSQ6B6CYiSCBIOh+DhJmmARiWQO" + "JtDsCJSCSBwkXSLIRicaZ6HqIIomoIguhwIpphIHoWDsJ4mCGChpmqOpGheLIOkqUo2iya4DjGJxihiQoSj4IJaDaMpCjCWoGg6PgpBiQ4tHcQJQBAgI="); var_Appearance.Add(2,"CP:4 -2 -2 2 2"); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot; excombobox1.HasButtons = exontrol.EXCOMBOBOXLib.ExpandButtonEnum.exCustom; excombobox1.set_HasButtonsCustom(false,16777216); excombobox1.set_HasButtonsCustom(true,33554432); excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child"); excombobox1.EndUpdate(); |
498 |
How can I change the visual appearance of the +/- buttons, open/close glyphs as current visual theme (method 2)
excombobox1.BeginUpdate(); exontrol.EXCOMBOBOXLib.Appearance var_Appearance = excombobox1.VisualAppearance; var_Appearance.Add(1,"XP:TREEVIEW 2 1"); var_Appearance.Add(2,"XP:TREEVIEW 2 2"); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exTreeGlyphOpen,0x1000000); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exTreeGlyphClose,0x2000000); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child"); excombobox1.EndUpdate(); |
497 |
How can I find if the control is running in DPI mode
System.Diagnostics.Debug.Print( excombobox1.FormatABC("dpi = 1 ? `normal/stretch mode` : `dpi mode`",null,null,null).ToString() ); |
496 |
How can I change the visual appearance of the +/- buttons (method 1)
excombobox1.BeginUpdate(); exontrol.EXCOMBOBOXLib.Appearance var_Appearance = excombobox1.VisualAppearance; var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABDwCg6AADACAxRDgMQBQKAAzAJBIYhiG4cYCgMZhXDOCYXABCEYRXBIZQ7BKNIxjSJ5BhIAAyDSJMjSRJUEhqGCWYDleYYYAKHIMQLJQKQS" + "BcQR9EaBZBAWTpQC0OJDTJRI4TNAgbSYAAYRqoCb6loTKypaxjCQQIgkUBpGKdBynEYsDwSGyJCCJWyIbpKAwoVbcs4AYhuJpaQi+d5PFbjVT8dLAMBwLA8EwXAJ+Opf" + "DxXU7eFKpR5fchXTI8UxXFqXZhkeQrfh7KYVRBKdBQRBEFQPJqnahqOpaXo2RoLUJKcQwHTmHYNQTALyuTALZrWeZ3XrgN74LbtZzVQauYRpbCMEr6bpoWLnFi6Ho1U4" + "llWah1jqSweFqfxPgQQRphi+Yak0YIuqUfJegef4zluaJ3nqPJeCYH4BAeX5TDLBpVGqKRRnwf4flefZtHsX54BYAR/F+EwVnUd5eAMMJKDIChygyIQpAoEh4iIJ5Jlg" + "XIcgCXpIGoFwnGEQh6BEKBgmMIICHgIJCAiUAzgyUoAhwJohkiRgygwYpiGoKwzGIcgKCkNQNCMRIbCYCRYk4QoMiOchWDwNBjhiJJaDYTRiGiFwlCQAhOE8JBJHITIR" + "gwZRZFCFCZBkOIUhKTRpCWAwgGYQ4El4NxlBifIWCcCYCFoaoMGaKYyG6GxlBmGJdhkCAWBIeA5g4U4QhMJAImkPIShRVxGgQJRlCIUISh+SJpnCZIeBgFgiHgO4OlOM" + "INCISByECDQikkGhuh2JwpmqBogCKaYiC6FwhmkQ4yHgYgYiaHopiuaRakCbIsisSpGjYOwaHYKYMCkK5CA2IxrCwCwFigaJrkLTI6lcdANAEgIA="); var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAEhABEICg6AADACAxRDgMQBQKAAzAJBIYhiG4cYCgMZhXDOCYXABCEYRXBIZQ7BKNIxjSJ5BhIAAyDSJMjSRJUEhqGCWYDleYYYAKHIMQLJQKQS" + "BcQR9EaBZBAWTpQC0OJDTJRI4TNAgbSYAAYRqoCb6loTKypaxjCQQIgkUBpGKdBynEYsDwSGyJCCJWyIbpKAwoVbcs4AYhuJpaQi+d5PFbjVT8dLAMBwLA8EwXAJ+Opf" + "DxXU7eFKpR5fchXTI8UxXFqXZhkeQrfh7KYVRBKdBQRBEFQPJqnahqOpaXo2RoLUJKcQwHTmHYNQTALyuTALZrWeZ3XrgN74LbtZzVQauYRpbCMEr6bpoWLnFi6Ho1U4" + "llWah1jqSweFqfxPgQQRphi+Yak0YIuqUfJeg8X4rluaZ3niGB+AQHx/EyShjjEVYqiUR5rnmex/GAB5+AIf4gEeXJFHyXZ3gCTAygyAociMKBKEKBIeCiCZyHYFAnCE" + "eBkh+BghFgRIegOCgYCySAgh4CAkgINAMmMNIgCcCYjn4LoLmMCJGDKC5ijIagoDMYhCAoJg1A0IxEhsJgJFiThChCY5yFYPA0GOGIYloNhNGIaIXCUJACE4TwkEkchO" + "FSFYlFkXhUCUCQZEYTglCSMxaEkYJIBmFJhDeDZZEYPwlgmQhghaGqVDoa4bGaeY6FGGZNlmFIBGEJ4jhiZQ5AkMhAg6E5JCkRoGCUSQ6B6CYiSCBIOh+DhJmmARiWQO" + "JtDsCJSCSBwkXSLIRicaZ6HqIIomoIguhwIpphIHoWDsJ4mCGChpmqOpGheLIOkqUo2iya4DjGJxihiQoSj4IJaDaMpCjCWoGg6PgpBiQ4tHcQJQBAgI="); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exTreeGlyphOpen,0x1000000); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exTreeGlyphClose,0x2000000); excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child"); excombobox1.EndUpdate(); |
495 |
Is there a way to change the dropdown button arrow to something else ( ebn, sample 3 )
excombobox1.BeginUpdate(); excombobox1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAEhABZEGACAADACAxRDgMQBQKAAzAJBIYhkGYYYCgMZRUDGCYXABCEYRXBIZQ7BKNIxjSJwFgmEgADKMA4SOKIZhrE4bBhGaQRUgyI43RhHUBzV" + "IUcQvE6TZRHCQYHgkNIhDJIM7TPLkeSVJaTIRoKhJUogApQThTMgVRDEThkGoSa6soSoYTDBKybLrSLKagOT5YUDKUqSdKEZRpEq1YztWbaQoCUoqVRRVIWfbNd4JJa4" + "aDhWpYdpeeY5R7bWLgBYVVABL7LLRsSxpHxPF6RXxaeI3GKsaS8G6ic6nPQMHj7I4NS5pUa6Rh2VYNSa8AAtETRYznOw4bTMXAjNIea5bAYIIR5HIoDzVbQcCQAHL9DB" + "eEMIQEEISgGhMGZQmocgymoYRRCIEQ0G2HYBnEIBig4V4zCQGINnmagCECY43medZ6H2Pw/g+X5fnueh/h+R5+AKABfkMWgGgGYA4AICoCGCE5WA4CphACMgSD2IRIDI" + "BICmEd5YGCBpRjGBgegWIYIgWdgoGIRQsiKCZiAiJZ0gGQI4jUS4LECOAiBmDJflGfg2BSY4Al4OhGkOCJ2DgFJjGGfgqgiH5Ch4RhGkqOQmEOEpkFkHQYhJRYyESAok" + "GKHhIhKIxJEmf4VGUeRGFmF5iBkchPhYJQ5GoYIZg6Ug6GoFYmkmNhuhuZwJkYcoagiZ5+HQFRngmZh6h6Z5JnYfodCaCgGBcOpfBQBCAgA=="); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDropDownButtonUp,0x1000000); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDropDownButtonDown,0x1f0f0f0); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.IntegralHeight = true; excombobox1.Columns.Add("P1"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_SelectItem(h,true); excombobox1.EndUpdate(); |
494 |
Is there a way to change the dropdown button arrow to something else ( ebn, sample 2 )
excombobox1.BeginUpdate(); excombobox1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAEhABKgCg6AADACAxRDgMQBQKAAzAJBIYhkGYYYCgMZRUDGCYXABCEYRXBIZQ7BKNIxjSJwFgmEgADKMA4SOKIZhrE4bBhGaQRUgyI43RhHUBzV" + "IUcQvE6TZRHCQYHgkNIhDJIM7TPLkeSVJaTIRoKhJUogApQThTMgVRDEThkGoSa6soSoYTDBKybLrSLKagOT5YUDKUqSdKEZRpEq1YztWbaQoCUoqVRRVIWfbNd4JJa4" + "aDhWpYdpeeY5R7bWLgBYVVABL7LLRsSxpHxPF6RXxaeI3GKsaS8G6ic6nPQMHj7I4NS5pUa6Rh2VYNSa8AAtETRYznOw4bTMXAjNIea5bAYIIR5HIoDzVbQcCQAHL9DB" + "eEMIQEEISgGhMGZQmocgymoYRRCIEQ0G2HYBnEIBig4V4zCQGINnmagCECY43medZ6H2Pw/EeH5wiITwUkWMRsF4PYgEeaZ3gGYBoCWeICk6V5wnMf4FDCAAfAiYQgg4" + "AYAmAWC7gIIYnm2fR/mEUYAF4GIFFEVBYgUYR4BCdoGmKSB6A+CAhDGBBfBiT4IlSdQ9A8WIWCeBJihgZgcg+YJoEIFYMiMSJWAaDZjhiGgogCIooG4QYMAIOQSDUPgi" + "lONhIg6JI4GIK4LiQKJGDOFJgGMbJbDcDg5hYR4OCWCJyEyAQiCGChDheZBoDIYg3AMIJEVYQ4AnoZQ4mYeQmDsCJGmGNBwDQTQDEaAQcCYCZKGOHRDHgVgVh4J4phoD" + "ISAaEYkGsNhNhMahVhyaJIFSDiuAIBIBCCaJ5mYe4VGGOhyHaBRInIPIRH2D5qkaIopCEOhCieBxjnqKoNgSapaj6OIsE+apOiWJBnkqYo6isKpqiGdIwCwKpWiaJIOl" + "sHo8jIa4JFaTIomwOZuBeMgrmifpKgGbR6lAI4lEaM4ymYKIKCKEpfjqbI6kSHgnEmc5GnIOpfBQBCAg="); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDropDownButtonUp,0x1000000); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDropDownButtonDown,0x1808080); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.IntegralHeight = true; excombobox1.Columns.Add("P1"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_SelectItem(h,true); excombobox1.EndUpdate(); |
493 |
Is there a way to change the dropdown button arrow to something else ( ebn, sample 1 )
excombobox1.BeginUpdate(); excombobox1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFACg6AADACAxRDgMQBQKAAzAJBIYhkGYYYCgMZRUDGCYXABCEYRXBIZQ7BKNIxjSJwFgmEgADKMA4SOKIZhrE4bBhGaQRUgyI43RhHUBzV" + "IUcQvE6TZRHCQYHgkNIhDJIM7TPLkeSVJaTIRoKhJUogApQThTMgVRDEThkGoSa6soSoYTDBKybLrSLKagOT5YUDKUqSdKEZRpEq1YztWbaQoCUoqVRRVIWfbNd4JJa4" + "aDhWpYdpeeY5R7bWLgBYVVABL7LLRsSxpHxPF6RXxaeI3GKsaS8G6ic6nPQMHj7I4NS5pUa6Rh2VYNSa8AAtETRYznOw4bTMXAjNIea5bAYIIR5HIoDzVbQcCQAHL9DB" + "eEMIQEEISgGhMGZQmocgymoYRRCIEQ0G2HYBnEIBig4V4zCQGINnmagCECY43medZ6H2Pw/g+X5dlqIh/k8SAFnofxgDgFZ8gGH5ShYCgmiCQgeA6AghAgr5/EyWBUhC" + "BZPngZIvgaSpoHYEYBCEOAMnWCJGgiFgZgmYoIDiBw1iKSB+C4fQHhiRJjgyYoIlYJwXmOA56DqC5iAONIhg+S45AYNoQmGExqEYIJkgicZ2gsDRhG4ToSAgMZqFIOol" + "EiHJzhWSIJGYUAZiWSBsi+EofEkGhiDaCIphSPIZmIcp2GoI4mkmDhGD4JwJgIPQkmcQwqHaCZKgmZI0h6ZwonCFIfmYKIch6IJMhoFh9ggXxIgydQZmjTR5iORhKEaB" + "4PGAOgUkmD5KBiHItiaSwKHaE4CPuBoMVieJMmMH4qgofoIDsRx6jSZorksapGGUIoqiidJHi2RYKmSHIumEchAh2L5rFeWhUDqAxbBQSIxkeCwkjGMpOAsNpBH0Do3k" + "UASAg"); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDropDownButtonUp,0x1000000); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDropDownButtonDown,0x1808080); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.IntegralHeight = true; excombobox1.Columns.Add("P1"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_SelectItem(h,true); excombobox1.EndUpdate(); |
492 |
Is there a way to change the dropdown button arrow to something else ( theme, ebn )
excombobox1.BeginUpdate(); exontrol.EXCOMBOBOXLib.Appearance var_Appearance = excombobox1.VisualAppearance; var_Appearance.Add(1,"XP:SCROLLBAR 1 6"); var_Appearance.Add(2,"XP:SCROLLBAR 1 7"); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDropDownButtonUp,0x1000000); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDropDownButtonDown,0x2000000); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.IntegralHeight = true; excombobox1.Columns.Add("P1"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_SelectItem(h,true); excombobox1.EndUpdate(); |
491 |
Is there a way to change the dropdown button arrow to something else ( no visual theme )
excombobox1.BeginUpdate(); excombobox1.UseVisualTheme = exontrol.EXCOMBOBOXLib.UIVisualThemeEnum.exBorderVisualTheme | exontrol.EXCOMBOBOXLib.UIVisualThemeEnum.exCheckBoxVisualTheme | exontrol.EXCOMBOBOXLib.UIVisualThemeEnum.exCalendarVisualTheme | exontrol.EXCOMBOBOXLib.UIVisualThemeEnum.exFilterBarVisualTheme | exontrol.EXCOMBOBOXLib.UIVisualThemeEnum.exHeaderVisualTheme; excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.IntegralHeight = true; excombobox1.Columns.Add("P1"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_SelectItem(h,true); excombobox1.EndUpdate(); |
490 |
Is there a way to change the dropdown button arrow to something else ( solid color )
excombobox1.BeginUpdate(); excombobox1.set_Background(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDropDownButtonDown,Color.FromArgb(190,190,190)); excombobox1.set_Background(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDropDownButtonUp,Color.FromArgb(128,128,128)); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.IntegralHeight = true; excombobox1.Columns.Add("P1"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_SelectItem(h,true); excombobox1.EndUpdate(); |
489 |
How can I find if there is any filter applied to the control
// FilterChange event - Occurs when filter was changed. private void excombobox1_FilterChange(object sender) { System.Diagnostics.Debug.Print( "If negative, the filter is present, else not" ); System.Diagnostics.Debug.Print( excombobox1.Items.VisibleItemCount.ToString() ); } //this.excombobox1.FilterChange += new exontrol.EXCOMBOBOXLib.exg2antt.FilterChangeEventHandler(this.excombobox1_FilterChange); excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.TreeColumnIndex = -1; excombobox1.FilterInclude = exontrol.EXCOMBOBOXLib.FilterIncludeEnum.exMatchingItemsOnly; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter; var_Column.Filter = "C1"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("R1"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("R2"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); excombobox1.ApplyFilter(); excombobox1.EndUpdate(); |
488 |
How can I prevent showing the lines for the hierarchy while using the exMatchingItemsOnly option
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.TreeColumnIndex = -1; excombobox1.FilterInclude = exontrol.EXCOMBOBOXLib.FilterIncludeEnum.exMatchingItemsOnly; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter; var_Column.Filter = "C1|C2"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("R1"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("R2"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); excombobox1.ApplyFilter(); excombobox1.EndUpdate(); |
487 |
Is there any method to get only the matched items and not the items with his parent
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.FilterInclude = exontrol.EXCOMBOBOXLib.FilterIncludeEnum.exMatchingItemsOnly; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter; var_Column.Filter = "C1|C2"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("R1"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("R2"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); excombobox1.ApplyFilter(); excombobox1.EndUpdate(); |
486 |
How do I get sorted the column as string, numeric, date, date and time. Also how can it be applied to drop down filter panel
excombobox1.BeginUpdate(); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Date") as exontrol.EXCOMBOBOXLib.Column); var_Column.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortDate; var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.DisplayFilterDate = true; var_Column.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exShowFocusItem | exontrol.EXCOMBOBOXLib.FilterListEnum.exShowCheckBox | exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc; exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("DateTime") as exontrol.EXCOMBOBOXLib.Column); var_Column1.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortDateTime; var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exShowFocusItem | exontrol.EXCOMBOBOXLib.FilterListEnum.exShowCheckBox | exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc; exontrol.EXCOMBOBOXLib.Column var_Column2 = (excombobox1.Columns.Add("Time") as exontrol.EXCOMBOBOXLib.Column); var_Column2.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortTime; var_Column2.DisplayFilterButton = true; var_Column2.DisplayFilterPattern = false; var_Column2.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exShowFocusItem | exontrol.EXCOMBOBOXLib.FilterListEnum.exShowCheckBox | exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc; var_Column2.FormatColumn = "time(value)"; exontrol.EXCOMBOBOXLib.Column var_Column3 = (excombobox1.Columns.Add("Numeric") as exontrol.EXCOMBOBOXLib.Column); var_Column3.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; var_Column3.DisplayFilterButton = true; var_Column3.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exShowFocusItem | exontrol.EXCOMBOBOXLib.FilterListEnum.exShowCheckBox | exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc; exontrol.EXCOMBOBOXLib.Column var_Column4 = (excombobox1.Columns.Add("String") as exontrol.EXCOMBOBOXLib.Column); var_Column4.DisplayFilterButton = true; var_Column4.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exShowFocusItem | exontrol.EXCOMBOBOXLib.FilterListEnum.exShowCheckBox | exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(Convert.ToDateTime("1/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/27/2010 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,2,var_Items.get_CellCaption(h,1)); var_Items.set_CellCaption(h,3,1); var_Items.set_CellCaption(h,4,var_Items.get_CellCaption(h,3)); h = var_Items.AddItem(Convert.ToDateTime("1/27/2011",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/27/2011 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,2,var_Items.get_CellCaption(h,1)); var_Items.set_CellCaption(h,3,11); var_Items.set_CellCaption(h,4,var_Items.get_CellCaption(h,3)); h = var_Items.AddItem(Convert.ToDateTime("11/2/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,1,Convert.ToDateTime("11/2/2010 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,2,var_Items.get_CellCaption(h,1)); var_Items.set_CellCaption(h,3,2); var_Items.set_CellCaption(h,4,var_Items.get_CellCaption(h,3)); excombobox1.Columns["DateTime"].DisplayFilterDate = false; excombobox1.EndUpdate(); |
485 |
How can I display a different column, on the control's label (method 2)
excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.SingleEdit = true; excombobox1.LabelColumnIndex = 1; excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exVLines; (excombobox1.Columns.Add("Column 1") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); (excombobox1.Columns.Add("Column 2") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaption(var_Items.AddItem("Item 1 on <b>Column 1"),1,"Item 1 on <b>Column 2"); var_Items.set_CellCaption(var_Items.AddItem("Item 2 on <b>Column 1"),1,"Item 2 on <b>Column 2"); var_Items.set_CellCaption(var_Items.AddItem("Item 3 on <b>Column 1"),1,"Item 3 on <b>Column 2"); var_Items.set_SelectItem(var_Items.FirstVisibleItem,true); excombobox1.EndUpdate(); |
484 |
How can I display a different column, on the control's label (method 1)
excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.SingleEdit = true; excombobox1.SearchColumnIndex = 1; excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exVLines; (excombobox1.Columns.Add("Column 1") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); (excombobox1.Columns.Add("Column 2") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaption(var_Items.AddItem("Item 1 on <b>Column 1"),1,"Item 1 on <b>Column 2"); var_Items.set_CellCaption(var_Items.AddItem("Item 2 on <b>Column 1"),1,"Item 2 on <b>Column 2"); var_Items.set_CellCaption(var_Items.AddItem("Item 3 on <b>Column 1"),1,"Item 3 on <b>Column 2"); var_Items.set_SelectItem(var_Items.FirstVisibleItem,true); excombobox1.EndUpdate(); |
483 |
How do I sort the index column as numeric
// InsertItem event - Occurs after a new item has been inserted to Items collection. private void excombobox1_InsertItem(object sender,int Item) { exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellData(Item,1,var_Items.get_ItemToIndex(Item)); } //this.excombobox1.InsertItem += new exontrol.EXCOMBOBOXLib.exg2antt.InsertItemEventHandler(this.excombobox1_InsertItem); excombobox1.BeginUpdate(); excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exAllLines; excombobox1.ColumnAutoResize = true; excombobox1.ShowFocusRect = false; excombobox1.SingleEdit = true; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Next") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellPaddingLeft,4); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exHeaderPaddingLeft,4); exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("Index") as exontrol.EXCOMBOBOXLib.Column); var_Column1.AllowSizing = false; var_Column1.Width = 48; var_Column1.FormatColumn = "(((0 := (1 index ``)) mod 3) case ( default: ``; 0 : `<r><fgcolor=B0B0B0>`; 1: ``; 2 : `<c><fgcolor=808080>` )) + str(=:0)"; var_Column1.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column1.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortUserData; var_Column1.Position = 0; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.AddItem("Item 5"); var_Items.AddItem("Item 6"); var_Items.AddItem("Item 7"); var_Items.AddItem("Item 8"); var_Items.AddItem("Item 9"); var_Items.AddItem("Item 10"); excombobox1.EndUpdate(); |
482 |
How can I put icons/images into buttons
excombobox1.BeginUpdate(); excombobox1.SingleEdit = true; excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("C+B") as exontrol.EXCOMBOBOXLib.Column); var_Column.AllowSizing = false; var_Column.Width = 48; var_Column.FormatColumn = "` <img>` + ( 1 + (1 index ``) mod 3 ) + `</img> `"; var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasButton,true); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellButtonAutoWidth,true); var_Column.Position = 0; excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exVLines; excombobox1.DefaultItemHeight = 20; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.AddItem("Item 5"); var_Items.AddItem("Item 6"); var_Items.AddItem("Item 7"); var_Items.AddItem("Item 8"); excombobox1.EndUpdate(); |
481 |
Is it possible to have a CheckBox and Button TOGETHER on all cells in a column
// CellButtonClick event - Fired after the user clicks on the cell of button type. private void excombobox1_CellButtonClick(object sender,exontrol.EXCOMBOBOXLib.HCELL Item) { System.Diagnostics.Debug.Print( "CellButtonClick" ); System.Diagnostics.Debug.Print( Item.ToString() ); System.Diagnostics.Debug.Print( excombobox1.get_Key(null).ToString() ); } //this.excombobox1.CellButtonClick += new exontrol.EXCOMBOBOXLib.exg2antt.CellButtonClickEventHandler(this.excombobox1_CellButtonClick); // CellStateChanged event - Fired after cell's state has been changed. private void excombobox1_CellStateChanged(object sender,exontrol.EXCOMBOBOXLib.HCELL Item) { System.Diagnostics.Debug.Print( "CellStateChanged" ); System.Diagnostics.Debug.Print( Item.ToString() ); System.Diagnostics.Debug.Print( excombobox1.get_Key(null).ToString() ); } //this.excombobox1.CellStateChanged += new exontrol.EXCOMBOBOXLib.exg2antt.CellStateChangedEventHandler(this.excombobox1_CellStateChanged); excombobox1.BeginUpdate(); excombobox1.SingleEdit = true; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("") as exontrol.EXCOMBOBOXLib.Column); var_Column.AllowSizing = false; var_Column.Width = 32; var_Column.FormatColumn = "1 index ``"; exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column); var_Column1.AllowSizing = false; var_Column1.Width = 48; var_Column1.FormatColumn = "` `"; var_Column1.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); var_Column1.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasButton,true); var_Column1.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellButtonAutoWidth,true); excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); excombobox1.EndUpdate(); |
480 |
How can I show only the matching items, while user types in the drop down control
// EditChange event - Fired when the user has taken an action that may have altered text in an edit control. private void excombobox1_EditChange(object sender,int ColIndex) { string sLabel = excombobox1.get_EditText(ColIndex); System.Diagnostics.Debug.Print( "Select the item that maches exactly the typing label: " ); System.Diagnostics.Debug.Print( sLabel.ToString() ); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_SelectItem(var_Items.FocusItem,false); var_Items.set_SelectItem(var_Items.get_FindItem(sLabel,ColIndex,null),true); } //this.excombobox1.EditChange += new exontrol.EXCOMBOBOXLib.exg2antt.EditChangeEventHandler(this.excombobox1_EditChange); excombobox1.BeginUpdate(); excombobox1.SingleEdit = true; excombobox1.AutoComplete = false; excombobox1.AutoSelect = false; excombobox1.AutoSearch = false; excombobox1.AutoDropDown = true; excombobox1.IntegralHeight = true; excombobox1.HeaderVisible = false; excombobox1.Columns.Add("Friends"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Fred"); var_Items.AddItem("Tina"); var_Items.AddItem("Tom"); excombobox1.EndUpdate(); |
479 |
How do I unselect/deselect the item (Simple style)
|
478 |
How do I unselect/deselect the item (DropDownList style)
excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDown; excombobox1.Columns.Add("Def"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 3"); excombobox1.SearchColumnIndex = 0; excombobox1.Value = "Item 2"; exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items; var_Items1.set_SelectItem(var_Items1.FocusItem,false); excombobox1.EndUpdate(); |
477 |
How do I unselect/deselect the item (DropDown style)
excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDown; excombobox1.Columns.Add("Def"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 3"); excombobox1.SearchColumnIndex = 0; excombobox1.Value = "Item 2"; exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items; var_Items1.set_SelectItem(var_Items1.FocusItem,false); excombobox1.EndUpdate(); |
476 |
Setting the ForeColor to red and then setting Enabled property on False the ForeColor returns back to original color of black/gray. What can be done (Style is Simple)
|
475 |
Setting the ForeColor to red and then setting Enabled property on False the ForeColor returns back to original color of black/gray. What can be done (Style is DropDownList)
excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.ColumnAutoResize = true; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("C1"); var_Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaption(var_Items.AddItem("item a"),1,"item b"); var_Items.set_CellCaption(var_Items.AddItem("item c"),1,"item d"); excombobox1.Value = "item a"; excombobox1.BackColorEdit = Color.FromArgb(0,0,0); excombobox1.ForeColor = Color.FromArgb(255,255,255); excombobox1.Enabled = false; excombobox1.EndUpdate(); |
474 |
Setting the ForeColor to red and then setting Enabled property on False the ForeColor returns back to original color of black/gray. What can be done (Style is DropDown)
excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDown; excombobox1.ColumnAutoResize = true; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("C1"); var_Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaption(var_Items.AddItem("item a"),1,"item b"); var_Items.set_CellCaption(var_Items.AddItem("item c"),1,"item d"); excombobox1.Value = "item a"; excombobox1.ForeColorEdit = Color.FromArgb(255,255,255); excombobox1.BackColorEdit = Color.FromArgb(0,0,0); excombobox1.Enabled = false; excombobox1.EndUpdate(); |
473 |
How would you clear the displayed selection for style DropDownList. So if a user selects or searches a value in a style DropDownList, I want to know if I can reset the control back to an empty selection
// DropUp event - Occurs when the drop-down portion of the control is hidden. private void excombobox1_DropUp(object sender) { excombobox1.Value = ""; } //this.excombobox1.DropUp += new exontrol.EXCOMBOBOXLib.exg2antt.DropUpEventHandler(this.excombobox1_DropUp); // SelectionChanged event - Fired after a new item has been selected. private void excombobox1_SelectionChanged(object sender) { System.Diagnostics.Debug.Print( "You selected: " ); System.Diagnostics.Debug.Print( excombobox1.Value.ToString() ); } //this.excombobox1.SelectionChanged += new exontrol.EXCOMBOBOXLib.exg2antt.SelectionChangedEventHandler(this.excombobox1_SelectionChanged); excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.HeaderVisible = false; excombobox1.AutoSearch = true; excombobox1.AutoDropDown = true; excombobox1.IntegralHeight = true; (excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column).AutoSearch = exontrol.EXCOMBOBOXLib.AutoSearchEnum.exContains; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("This is a bit of text"); var_Items.AddItem("This is a another text"); var_Items.DefaultItem = var_Items.InsertItem(null,null,""); var_Items.set_ItemPosition(0,0); var_Items.set_SortableItem(0,false); excombobox1.EndUpdate(); |
472 |
I cannot seem to get autosearch=1 (contains) in the column object to search properly. It still only finds items that start with the typed character. I want to it look to see if the typed character(s) are contained in the item. I Can't seem to get this to work
excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.HeaderVisible = false; excombobox1.AutoSearch = true; excombobox1.AutoDropDown = true; excombobox1.IntegralHeight = true; (excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column).AutoSearch = exontrol.EXCOMBOBOXLib.AutoSearchEnum.exContains; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("This is a bit of text"); var_Items.AddItem("This is a another text"); excombobox1.EndUpdate(); |
471 |
If the user selects an item from the list, how can I clear that selection and return the control to the unselected state with the PROMPT text
// DropUp event - Occurs when the drop-down portion of the control is hidden. private void excombobox1_DropUp(object sender) { excombobox1.set_EditText(0,""); } //this.excombobox1.DropUp += new exontrol.EXCOMBOBOXLib.exg2antt.DropUpEventHandler(this.excombobox1_DropUp); // SelectionChanged event - Fired after a new item has been selected. private void excombobox1_SelectionChanged(object sender) { System.Diagnostics.Debug.Print( "You selected: " ); System.Diagnostics.Debug.Print( excombobox1.Value.ToString() ); } //this.excombobox1.SelectionChanged += new exontrol.EXCOMBOBOXLib.exg2antt.SelectionChangedEventHandler(this.excombobox1_SelectionChanged); excombobox1.BeginUpdate(); excombobox1.LabelHeight = 23; excombobox1.IntegralHeight = true; excombobox1.AutoComplete = false; excombobox1.AutoSearch = false; excombobox1.AutoDropDown = true; (excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column).Prompt = "<i><fgcolor=808080>type something</fgcolor></i>"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(0); var_Items.AddItem(1); var_Items.AddItem(2); excombobox1.EndUpdate(); |
470 |
How do I get notified once the user changes the Filter For field
// EditChange event - Fired when the user has taken an action that may have altered text in an edit control. private void excombobox1_EditChange(object sender,int ColIndex) { System.Diagnostics.Debug.Print( "ColIndex: " ); System.Diagnostics.Debug.Print( ColIndex.ToString() ); System.Diagnostics.Debug.Print( "Label: " ); System.Diagnostics.Debug.Print( excombobox1.get_EditText(0) ); System.Diagnostics.Debug.Print( "FilterFor: " ); System.Diagnostics.Debug.Print( excombobox1.get_EditText(-1) ); } //this.excombobox1.EditChange += new exontrol.EXCOMBOBOXLib.exg2antt.EditChangeEventHandler(this.excombobox1_EditChange); excombobox1.BeginUpdate(); excombobox1.FilterForVisible = true; excombobox1.FilterForBackColor = Color.FromArgb(240,240,240); excombobox1.IntegralHeight = true; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.AddItem("Item 5"); excombobox1.EndUpdate(); |
469 |
I am using the ScrollWidth/ScrollHeight property on 0 to hide the control's scroll bars, the question is that the drop down button is disappearing. What can be done so I can still show the drop down button
|
468 |
Does your control supports scrolling by touching the screen
|
467 |
How can I make bigger/enlarge the control's drop down button
excombobox1.BeginUpdate(); excombobox1.LabelHeight = 40; excombobox1.ScrollWidth = 40; excombobox1.EndUpdate(); |
466 |
How do I select a NULL/empty value
excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.Columns.Add("Items"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.DefaultItem = var_Items.InsertItem(null,null,""); var_Items.set_ItemPosition(0,0); var_Items.set_SortableItem(0,false); excombobox1.Value = ""; excombobox1.EndUpdate(); |
465 |
How can I add a vertical padding
excombobox1.BeginUpdate(); excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exAllLines; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Padding") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellSingleLine,false); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellPaddingLeft,6); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellPaddingRight,6); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellPaddingTop,6); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellPaddingBottom,6); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("padding"); var_Items.AddItem("padding"); excombobox1.EndUpdate(); |
464 |
How can I add or change the padding (spaces) for captions in the control's header
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Padding-Left") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exHeaderPaddingLeft,18); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Padding-Right") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exHeaderPaddingRight,18); var_Column.HeaderAlignment = exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment; excombobox1.EndUpdate(); |
463 |
Is it possible to change the height for all items at once
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Columns.Add("Items"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(0,true); excombobox1.EndUpdate(); excombobox1.DefaultItemHeight = 12; excombobox1.Items.set_ItemHeight(0,12); |
462 |
How can I have a case-insensitive filter (exFilterDoCaseSensitive flag is not set)
excombobox1.BeginUpdate(); excombobox1.MarkSearchColumn = false; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; exontrol.EXCOMBOBOXLib.Column var_Column = (var_Columns.Add("Car") as exontrol.EXCOMBOBOXLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter; var_Column.Filter = "MAZDA"; exontrol.EXCOMBOBOXLib.Column var_Column1 = (var_Columns.Add("Equipment") as exontrol.EXCOMBOBOXLib.Column); var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.CustomFilter = "Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"; var_Column1.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exPattern; var_Column1.Filter = "AIR BAG"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag"); var_Items.set_CellCaption(var_Items.AddItem("Toyota"),1,"Air Bag,Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Ford"),1,"Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Nissan"),1,"Air Bag,ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag, ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"ABS,ESP"); excombobox1.ApplyFilter(); excombobox1.EndUpdate(); |
461 |
How can I have a case-sensitive filter
excombobox1.BeginUpdate(); excombobox1.MarkSearchColumn = false; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; exontrol.EXCOMBOBOXLib.Column var_Column = (var_Columns.Add("Car") as exontrol.EXCOMBOBOXLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilterDoCaseSensitive | exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter; var_Column.Filter = "Mazda"; exontrol.EXCOMBOBOXLib.Column var_Column1 = (var_Columns.Add("Equipment") as exontrol.EXCOMBOBOXLib.Column); var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.CustomFilter = "Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"; var_Column1.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilterDoCaseSensitive | exontrol.EXCOMBOBOXLib.FilterTypeEnum.exPattern; var_Column1.Filter = "Air Bag"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag"); var_Items.set_CellCaption(var_Items.AddItem("Toyota"),1,"Air Bag,Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Ford"),1,"Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Nissan"),1,"Air Bag,ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag, ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"ABS,ESP"); excombobox1.ApplyFilter(); excombobox1.EndUpdate(); |
460 |
Is it possible to filter the items as I type
// EditChange event - Fired when the user has taken an action that may have altered text in an edit control. private void excombobox1_EditChange(object sender,int ColIndex) { excombobox1.Columns[0].Filter = excombobox1.get_EditText(0); excombobox1.ApplyFilter(); } //this.excombobox1.EditChange += new exontrol.EXCOMBOBOXLib.exg2antt.EditChangeEventHandler(this.excombobox1_EditChange); excombobox1.BeginUpdate(); excombobox1.MarkSearchColumn = false; excombobox1.SingleEdit = true; excombobox1.AutoComplete = false; excombobox1.AutoDropDown = true; excombobox1.IntegralHeight = true; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; exontrol.EXCOMBOBOXLib.Column var_Column = (var_Columns.Add("Items") as exontrol.EXCOMBOBOXLib.Column); var_Column.Prompt = "<i><fgcolor=808080>Start Filter</fgcolor></i>"; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exPattern; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("A"); var_Items.AddItem("B"); var_Items.AddItem("C"); var_Items.AddItem("AB"); var_Items.AddItem("AC"); var_Items.AddItem("BA"); var_Items.AddItem("BC"); var_Items.AddItem("CC"); excombobox1.EndUpdate(); |
459 |
What is the equivalent to combo1.text=combo1.list(index) to select a row in the combo
|
458 |
What is the equivalent to combo1.text=combo1.list(index) to select a row in the combo
|
457 |
What is the equivalent to combo1.text=combo1.list(index) to select a row in the combo
|
456 |
What is the equivalent to combo1.text=combo1.list(index) to select a row in the combo
|
455 |
How can I change the color, font, bold etc for the items/cells in the same column or for the entire column
|
454 |
How can I add a horizontal scroll bar
excombobox1.BeginUpdate(); excombobox1.ScrollBySingleLine = true; excombobox1.ColumnAutoResize = false; excombobox1.BackColorAlternate = Color.FromArgb(240,240,240); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column); var_Column.Width = 512; var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellSingleLine,false); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Exontrol is devoted to create innovative user interface components for Windows applications, on COM or .NET platforms, since 19" + "99. \"eXontrol\" comes from e(s)pecial (c)ontrol, where sc makes the X. We are a vendor not a reseller, and this is the single s" + "ite where you can try or buy our products. If you are tired of looking for \"powerful\" components now it's time to show you rea" + "l components. No registration required, no nag screens, no limitations, unlimited evaluation time."); var_Items.AddItem("A combo box is a commonly-used GUI tool. It is a combination of a drop-down list or list box and a single-line textbox, allowin" + "g the user either to type a value directly into the control or choose from the list of existing options."); excombobox1.EndUpdate(); |
453 |
Does the control have the option to have a horizontal scroll to show entries which are longer than the display
excombobox1.BeginUpdate(); excombobox1.ColumnAutoResize = false; (excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column).Width = 512; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Exontrol is devoted to create innovative user interface components for Windows applications, on COM or .NET platforms, since 19" + "99. \"eXontrol\" comes from e(s)pecial (c)ontrol, where sc makes the X. We are a vendor not a reseller, and this is the single s" + "ite where you can try or buy our products. If you are tired of looking for \"powerful\" components now it's time to show you rea" + "l components. No registration required, no nag screens, no limitations, unlimited evaluation time."); var_Items.AddItem("A combo box is a commonly-used GUI tool. It is a combination of a drop-down list or list box and a single-line textbox, allowin" + "g the user either to type a value directly into the control or choose from the list of existing options."); excombobox1.EndUpdate(); |
452 |
Is it possible to auto-numbering the children items but still keeps the position after filtering
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Items") as exontrol.EXCOMBOBOXLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter; var_Column.Filter = "Child 2"; exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("Pos.1") as exontrol.EXCOMBOBOXLib.Column); var_Column1.FormatColumn = "1 ropos ''"; var_Column1.Position = 0; var_Column1.Width = 32; var_Column1.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column2 = (excombobox1.Columns.Add("Pos.2") as exontrol.EXCOMBOBOXLib.Column); var_Column2.FormatColumn = "1 ropos ':'"; var_Column2.Position = 1; var_Column2.Width = 32; var_Column2.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column3 = (excombobox1.Columns.Add("Pos.3") as exontrol.EXCOMBOBOXLib.Column); var_Column3.FormatColumn = "1 ropos ':|A-Z'"; var_Column3.Position = 2; var_Column3.Width = 32; var_Column3.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column4 = (excombobox1.Columns.Add("Pos.4") as exontrol.EXCOMBOBOXLib.Column); var_Column4.FormatColumn = "1 ropos '|A-Z|'"; var_Column4.Position = 3; var_Column4.Width = 32; var_Column4.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column5 = (excombobox1.Columns.Add("Pos.5") as exontrol.EXCOMBOBOXLib.Column); var_Column5.FormatColumn = "'<font Tahoma;7>' + 1 ropos '-<b>||A-Z'"; var_Column5.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column5.Position = 4; var_Column5.Width = 32; var_Column5.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column6 = (excombobox1.Columns.Add("Pos.6") as exontrol.EXCOMBOBOXLib.Column); var_Column6.FormatColumn = "'<b>'+ 1 ropos '</b>:<fgcolor=FF0000>|A-Z|'"; var_Column6.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column6.Position = 5; var_Column6.Width = 48; var_Column6.AllowSizing = false; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); excombobox1.ApplyFilter(); excombobox1.EndUpdate(); |
451 |
How do I prevent scrolling the control's data after user does the sort
|
450 |
Is it possible to auto-numbering the children items too
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Columns.Add("Items"); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Pos.1") as exontrol.EXCOMBOBOXLib.Column); var_Column.FormatColumn = "1 rpos ''"; var_Column.Position = 0; var_Column.Width = 32; var_Column.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("Pos.2") as exontrol.EXCOMBOBOXLib.Column); var_Column1.FormatColumn = "1 rpos ':'"; var_Column1.Position = 1; var_Column1.Width = 32; var_Column1.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column2 = (excombobox1.Columns.Add("Pos.3") as exontrol.EXCOMBOBOXLib.Column); var_Column2.FormatColumn = "1 rpos ':|A-Z'"; var_Column2.Position = 2; var_Column2.Width = 32; var_Column2.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column3 = (excombobox1.Columns.Add("Pos.4") as exontrol.EXCOMBOBOXLib.Column); var_Column3.FormatColumn = "1 rpos '|A-Z|'"; var_Column3.Position = 3; var_Column3.Width = 32; var_Column3.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column4 = (excombobox1.Columns.Add("Pos.5") as exontrol.EXCOMBOBOXLib.Column); var_Column4.FormatColumn = "'<font Tahoma;7>' + 1 rpos '-<b>||A-Z'"; var_Column4.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column4.Position = 4; var_Column4.Width = 32; var_Column4.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column5 = (excombobox1.Columns.Add("Pos.6") as exontrol.EXCOMBOBOXLib.Column); var_Column5.FormatColumn = "'<b>'+ 1 rpos '</b>:<fgcolor=FF0000>|A-Z|'"; var_Column5.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column5.Position = 5; var_Column5.Width = 48; var_Column5.AllowSizing = false; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); excombobox1.EndUpdate(); |
449 |
How can I show the child items with no identation
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesOutside; excombobox1.Indent = 12; excombobox1.HasLines = exontrol.EXCOMBOBOXLib.HierarchyLineEnum.exThinLine; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.InsertItem(h,null,"Child 3"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.InsertItem(h,null,"Child 3"); |
448 |
Is there other ways of showing the hierarchy lines (exGroupLinesAtRoot)
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot; excombobox1.Indent = 12; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.InsertItem(h,null,"Child 3"); var_Items.set_ExpandItem(h,true); |
447 |
Is there other ways of showing the hierarchy lines (exGroupLinesOutside)
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesOutside; excombobox1.Indent = 12; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.InsertItem(h,null,"Child 3"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.InsertItem(h,null,"Child 3"); |
446 |
Is there other ways of showing the hierarchy lines (exGroupLinesInsideLeaf)
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesInsideLeaf; excombobox1.Indent = 12; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.InsertItem(h,null,"Child 3"); var_Items.set_ExpandItem(h,true); |
445 |
Is there other ways of showing the hierarchy lines (exGroupLinesInside)
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesInside; excombobox1.Indent = 12; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.InsertItem(h,null,"Child 3"); var_Items.set_ExpandItem(h,true); |
444 |
Is there other ways of showing the hierarchy lines (exGroupLines)
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLines; excombobox1.Indent = 12; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(var_Items.InsertItem(h,null,"Child 2"),null,"SubChild 2"); var_Items.InsertItem(h,null,"Child 3"); var_Items.set_ExpandItem(h,true); |
443 |
Is it possible display numbers in the same format no matter of regional settings in the control panel
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default positive)'"); h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '2|.|3|,|1|1')"); h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default negative)'"); h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '2|.|3|,|1|1')"); excombobox1.EndUpdate(); |
442 |
Is it possible to add a 0 for numbers less than 1 instead .7 to show 0.8
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(0.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(0.27); var_Items.set_FormatCell(h,0,"(value format '|||||0') + ' <fgcolor=808080>(Display no leading zeros)'"); excombobox1.EndUpdate(); |
441 |
How can I specify the format for negative numbers
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '||||1') + ' <fgcolor=808080>(Negative sign, number; for example, -1.1)'"); excombobox1.EndUpdate(); |
440 |
Is it possible to change the grouping character when display numbers
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '|||-') + ' <fgcolor=808080>(grouping character is -)'"); excombobox1.EndUpdate(); |
439 |
How can I display numbers with 2 digits in each group
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '||2') + ' <fgcolor=808080>(grouping by 2 digits)'"); excombobox1.EndUpdate(); |
438 |
How can I display my numbers using a different decimal separator
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '|;') + ' <fgcolor=808080>(decimal separator is <b>;</b>)'"); excombobox1.EndUpdate(); |
437 |
Is it possible to display the numbers using 3 (three) digits
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '3') + ' <fgcolor=808080>(3 digits)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format 2) + ' <fgcolor=808080>(2 digits)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format 1) + ' <fgcolor=808080>(1 digit)'"); excombobox1.EndUpdate(); |
436 |
Is it possible to format numbers
excombobox1.BeginUpdate(); excombobox1.MarkSearchColumn = false; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("Name"); exontrol.EXCOMBOBOXLib.Column var_Column = (var_Columns.Add("A") as exontrol.EXCOMBOBOXLib.Column); var_Column.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; var_Column.AllowSizing = false; var_Column.Width = 36; var_Column.FormatColumn = "len(value) ? value + ' +'"; exontrol.EXCOMBOBOXLib.Column var_Column1 = (var_Columns.Add("B") as exontrol.EXCOMBOBOXLib.Column); var_Column1.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; var_Column1.AllowSizing = false; var_Column1.Width = 36; var_Column1.FormatColumn = "len(value) ? value + ' +'"; exontrol.EXCOMBOBOXLib.Column var_Column2 = (var_Columns.Add("C") as exontrol.EXCOMBOBOXLib.Column); var_Column2.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; var_Column2.AllowSizing = false; var_Column2.Width = 36; var_Column2.FormatColumn = "len(value) ? value + ' ='"; exontrol.EXCOMBOBOXLib.Column var_Column3 = (var_Columns.Add("A+B+C") as exontrol.EXCOMBOBOXLib.Column); var_Column3.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; var_Column3.Width = 64; var_Column3.ComputedField = "dbl(%1)+dbl(%2)+dbl(%3)"; var_Column3.FormatColumn = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00" + "00FF>+'+(value format '2|.|3|,' ): '0.00') )"; var_Column3.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.set_CellCaptionFormat(h,4,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exComputedField); int h1 = var_Items.InsertItem(h,null,"Child 1"); var_Items.set_CellCaption(h1,1,7); var_Items.set_CellCaption(h1,2,3); var_Items.set_CellCaption(h1,3,1); h1 = var_Items.InsertItem(h,null,"Child 2"); var_Items.set_CellCaption(h1,1,-2); var_Items.set_CellCaption(h1,2,-2); var_Items.set_CellCaption(h1,3,-4); h1 = var_Items.InsertItem(h,null,"Child 3"); var_Items.set_CellCaption(h1,1,2); var_Items.set_CellCaption(h1,2,2); var_Items.set_CellCaption(h1,3,-4); var_Items.set_ExpandItem(h,true); excombobox1.EndUpdate(); |
435 |
Is it possible to limit the height of the item while resizing
// InsertItem event - Occurs after a new item has been inserted to Items collection. private void excombobox1_InsertItem(object sender,int Item) { excombobox1.Items.set_ItemMinHeight(Item,18); excombobox1.Items.set_ItemMaxHeight(Item,72); } //this.excombobox1.InsertItem += new exontrol.EXCOMBOBOXLib.exg2antt.InsertItemEventHandler(this.excombobox1_InsertItem); excombobox1.BeginUpdate(); excombobox1.ItemsAllowSizing = exontrol.EXCOMBOBOXLib.ItemsAllowSizingEnum.exResizeItem; excombobox1.ScrollBySingleLine = false; excombobox1.BackColorAlternate = Color.FromArgb(240,240,240); excombobox1.Columns.Add("Names"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Mantel"); var_Items.AddItem("Mechanik"); var_Items.AddItem("Motor"); var_Items.AddItem("Murks"); var_Items.AddItem("Märchen"); var_Items.AddItem("Möhren"); var_Items.AddItem("Mühle"); excombobox1.Columns[0].SortOrder = exontrol.EXCOMBOBOXLib.SortOrderEnum.SortAscending; excombobox1.EndUpdate(); |
434 |
How can I simulate displaying groups
excombobox1.HasLines = exontrol.EXCOMBOBOXLib.HierarchyLineEnum.exNoLine; excombobox1.ScrollBySingleLine = true; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("Name"); var_Columns.Add("A"); var_Columns.Add("B"); var_Columns.Add("C"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Group 1"); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerBoth); var_Items.set_ItemHeight(h,24); var_Items.set_SortableItem(h,false); int h1 = var_Items.InsertItem(h,null,"Child 1"); var_Items.set_CellCaption(h1,1,1); var_Items.set_CellCaption(h1,2,2); var_Items.set_CellCaption(h1,3,3); h1 = var_Items.InsertItem(h,null,"Child 2"); var_Items.set_CellCaption(h1,1,4); var_Items.set_CellCaption(h1,2,5); var_Items.set_CellCaption(h1,3,6); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Group 2"); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerBoth); var_Items.set_ItemHeight(h,24); var_Items.set_SortableItem(h,false); h1 = var_Items.InsertItem(h,null,"Child 1"); var_Items.set_CellCaption(h1,1,1); var_Items.set_CellCaption(h1,2,2); var_Items.set_CellCaption(h1,3,3); h1 = var_Items.InsertItem(h,null,"Child 2"); var_Items.set_CellCaption(h1,1,4); var_Items.set_CellCaption(h1,2,5); var_Items.set_CellCaption(h1,3,6); var_Items.set_ExpandItem(h,true); |
433 |
How can I specify an item to be always the first item
|
432 |
How can I specify an item to be always the last item
|
431 |
Can I allow sorting only the child items
excombobox1.BeginUpdate(); excombobox1.Columns.Add("Childs"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.set_SortableItem(h,false); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.set_SortableItem(h,false); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); excombobox1.EndUpdate(); |
430 |
Can I specify a terminal item so it will mark the end of childs
excombobox1.BeginUpdate(); excombobox1.ScrollBySingleLine = true; excombobox1.Columns.Add("P1"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.InsertItem(h,"",""); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerCenter); var_Items.set_ItemHeight(h,2); var_Items.set_SelectableItem(h,false); var_Items.set_SortableItem(h,false); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.InsertItem(h,"",""); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerCenter); var_Items.set_ItemHeight(h,2); var_Items.set_SelectableItem(h,false); var_Items.set_SortableItem(h,false); excombobox1.EndUpdate(); |
429 |
Is it possible to specify an item being unsortable so its position won't be changed after sorting
|
428 |
Can I specify an item to be a separator
excombobox1.BeginUpdate(); excombobox1.TreeColumnIndex = -1; excombobox1.SortOnClick = exontrol.EXCOMBOBOXLib.SortOnClickEnum.exNoSort; excombobox1.Columns.Add("Numbers"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(1); var_Items.AddItem(2); int h = var_Items.AddItem("separator"); var_Items.set_SelectableItem(h,false); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerCenter); var_Items.set_ItemDividerLine(h,exontrol.EXCOMBOBOXLib.DividerLineEnum.ThinLine); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment); var_Items.AddItem(3); var_Items.AddItem(4); excombobox1.EndUpdate(); |
427 |
How can I collapse all items
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Columns.Add("Items"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(0,false); excombobox1.EndUpdate(); |
426 |
How can I expand all items
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Columns.Add("Items"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(0,true); excombobox1.EndUpdate(); |
425 |
Is it possible to specify the cell's value but still want to display some formatted text instead the value
excombobox1.BeginUpdate(); excombobox1.MarkSearchColumn = false; excombobox1.Columns.Add("Value"); excombobox1.Columns.Add("FormatCell"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(1); var_Items.set_CellCaption(h,1,12); var_Items.set_FormatCell(h,1,"currency(value)"); h = var_Items.AddItem(Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaptionFormat(h,1,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exHTML); var_Items.set_FormatCell(h,1,"longdate(value) replace '2001' with '<b>2001</b>'"); excombobox1.EndUpdate(); |
424 |
How can I change the foreground color for a particular column
|
423 |
How can I change the background color for a particular column
|
422 |
How can I display the column using currency format and enlarge the font for certain values
|
421 |
How can I highlight only parts of the cells
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column.FormatColumn = "value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.InsertItem(h,null,"Child 3"); var_Items.set_ExpandItem(h,true); |
420 |
How can I get the number of occurrences of a specified string in the cell
excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("occurrences") as exontrol.EXCOMBOBOXLib.Column); var_Column.ComputedField = "lower(%0) count 'o'"; var_Column.FormatColumn = "'contains ' + value + ' of \\'o\\' chars'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1 oooof the root"); var_Items.InsertItem(h,null,"Child 2"); var_Items.InsertItem(h,null,"Child 3"); var_Items.set_ExpandItem(h,true); |
419 |
How can I display dates in my format
|
418 |
How can I display dates in short format
|
417 |
How can I display dates in long format
|
416 |
How can I display only the right part of the cell
excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Right") as exontrol.EXCOMBOBOXLib.Column); var_Column.ComputedField = "%0 right 2"; var_Column.FormatColumn = "'\"' + value + '\"'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.InsertItem(h,null,"SChild 3"); var_Items.set_ExpandItem(h,true); |
415 |
How can I display true or false instead 0 and -1
|
414 |
How can I display icons or images instead numbers
excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Icons") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column.FormatColumn = "'The cell displays the icon <img>'+value+'</img> instead ' + value"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(1); var_Items.AddItem(2); var_Items.AddItem(3); |
413 |
How can I display the column using currency
|
412 |
How can I filter programatically using more columns
excombobox1.BeginUpdate(); excombobox1.MarkSearchColumn = false; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("Car"); var_Columns.Add("Equipment"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag"); var_Items.set_CellCaption(var_Items.AddItem("Toyota"),1,"Air Bag,Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Ford"),1,"Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Nissan"),1,"Air Bag,ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag, ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"ABS,ESP"); exontrol.EXCOMBOBOXLib.Column var_Column = excombobox1.Columns["Car"]; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter; var_Column.Filter = "Mazda"; exontrol.EXCOMBOBOXLib.Column var_Column1 = excombobox1.Columns["Equipment"]; var_Column1.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exPattern; var_Column1.Filter = "*ABS*|*ESP*"; excombobox1.ApplyFilter(); excombobox1.EndUpdate(); |
411 |
I need a combobox that supports selecting multiple items, preferably with checkboxes. I can't find an example of how to do this. Does your control support it
// CellStateChanged event - Fired after cell's state has been changed. private void excombobox1_CellStateChanged(object sender,exontrol.EXCOMBOBOXLib.HCELL Cell) { excombobox1.LabelText = Cell.ToString(); System.Diagnostics.Debug.Print( excombobox1.Items.get_CellCaption(0,Cell).ToString() ); System.Diagnostics.Debug.Print( excombobox1.Items.get_CellState(0,Cell).ToString() ); } //this.excombobox1.CellStateChanged += new exontrol.EXCOMBOBOXLib.exg2antt.CellStateChangedEventHandler(this.excombobox1_CellStateChanged); excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.IntegralHeight = true; excombobox1.HeaderVisible = false; excombobox1.SingleEdit = true; excombobox1.SearchColumnIndex = -1; excombobox1.AdjustSearchColumn = false; (excombobox1.Columns.Add("Language") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("English"); var_Items.AddItem("Hebrew"); var_Items.AddItem("Spanish"); excombobox1.EndUpdate(); |
410 |
How can I display a different caption in the label area, when I click the cell's check box
// CellStateChanged event - Fired after cell's state has been changed. private void excombobox1_CellStateChanged(object sender,exontrol.EXCOMBOBOXLib.HCELL Cell) { excombobox1.LabelText = Cell.ToString(); System.Diagnostics.Debug.Print( excombobox1.Items.get_CellCaption(0,Cell).ToString() ); System.Diagnostics.Debug.Print( excombobox1.Items.get_CellState(0,Cell).ToString() ); } //this.excombobox1.CellStateChanged += new exontrol.EXCOMBOBOXLib.exg2antt.CellStateChangedEventHandler(this.excombobox1_CellStateChanged); excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.IntegralHeight = true; excombobox1.HeaderVisible = false; excombobox1.SingleEdit = true; excombobox1.SearchColumnIndex = -1; excombobox1.AdjustSearchColumn = false; (excombobox1.Columns.Add("Language") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("English"); var_Items.AddItem("Hebrew"); var_Items.AddItem("Spanish"); excombobox1.LabelText = " <b>custom</b> text "; excombobox1.EndUpdate(); |
409 |
How can I display a different caption in the label area
excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.IntegralHeight = true; excombobox1.HeaderVisible = false; excombobox1.SingleEdit = true; excombobox1.SearchColumnIndex = -1; excombobox1.AdjustSearchColumn = false; (excombobox1.Columns.Add("Language") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("English"); var_Items.AddItem("Hebrew"); var_Items.AddItem("Spanish"); excombobox1.LabelText = " <b>custom</b> text "; excombobox1.EndUpdate(); |
408 |
How can I change the background appearance (ebn) for the filter field in the bottom part of the drop down portion
|
407 |
How can I change the background color for the filter field in the bottom part of the drop down portion
excombobox1.BeginUpdate(); excombobox1.FilterForVisible = true; excombobox1.FilterForBackColor = Color.FromArgb(240,240,240); excombobox1.IntegralHeight = true; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.AddItem("Item 5"); excombobox1.EndUpdate(); |
406 |
How can I display a filter field in the bottom part of the drop down portion
|
405 |
Does your control support RightToLeft property for RTL languages or right to left
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("P1") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.PartialCheck = true; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); excombobox1.RightToLeft = true; excombobox1.EndUpdate(); |
404 |
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
|
403 |
Can I display the cell's check box after the text
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellDrawPartsOrder,"caption,check"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellHasCheckBox(var_Items.AddItem("Caption 1"),0,true); var_Items.set_CellHasCheckBox(var_Items.AddItem("Caption 2"),0,true); |
402 |
Can I change the order of the parts in the cell, as checkbox after the text, and so on
|
401 |
Can I have an image displayed after the text. Can I get that effect without using HTML content
|